<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="./public/css/bootstrap.min.css">
    <script src="./jquery-1.8.3.min.js"></script>
</head>
<body>
    <h1>JQ 其他</h1>
    <hr>

    <ul id="list">
        <li>《悯农》绅</li>
        <li>锄禾日当午</li>
        <li>汗滴和下土</li>
        <li>谁知盘中餐</li>
        <li>莉莉真辛苦</li>
    </ul>

    <script>
        $(function (){
            $('#list li').each(function(i, n){
                console.log(i, ''+n, this + '', $(this).index());
            });
            console.log($('#list li').size());
            console.log($('#list li').get(2));
        });

    </script>
</body>
</html>
